package com.globalwave.pos.inventory;

import java.text.SimpleDateFormat;
import java.util.Date;

import org.junit.Ignore;
import org.junit.Test;

import junit.framework.Assert;

//@Ignore
public class ItemMasterStatusBOTest extends InventoryBaseTestCase {
    private String warehouseCode = "UTC1" ;
    private Long stockItemNumber = 12345L ;
    /*
    @Override
    public void initDataForMethod() throws Exception {
    	super.initDataForMethod() ;
    	CodeHelper.refresh("ItemMasterPrice") ;
    }*/
/*
    @Test
    public void validateSalable_20110901() throws Exception {
    	Date d20110901000000 = new SimpleDateFormat("yyyyMMddHHmmss").parse("20110901000000") ;
    	Date d20110901000001 = new SimpleDateFormat("yyyyMMddHHmmss").parse("20110901000001") ;
    	Date d20110830235959 = new SimpleDateFormat("yyyyMMddHHmmss").parse("20110830235959") ;
    	
    	ItemBOImpl bo = getItemBO() ;
    	bo.setWarehouseCode(warehouseCode) ;
    	try {
    	    bo.validateItemStatusSalable(stockItemNumber, d20110901000000);
		} catch (Pos5gBizException e) {
			Assert.assertTrue("[d20110901000000]Pos5gBizException should not be throwed!", false) ;
		}
    	try {
    		bo.validateItemStatusSalable(stockItemNumber, d20110901000001);
		} catch (Pos5gBizException e) {
			Assert.assertTrue("[d20110901000001]Pos5gBizException should not be throwed!", false) ;
		}
    	try {
    		bo.validateItemStatusSalable(stockItemNumber, d20110830235959);
			Assert.assertTrue("[d20110830235959]Pos5gBizException should be throwed!", false) ;
		} catch (Pos5gBizException e) {
			Assert.assertEquals("err.inv.stock.unsalable", e.getMessageKey()) ;
		}
    }
*/

}
